package com.itheima.test;

public class arraytest6 {
    public static void main(String[] args) {
        //定义两个变量，交换
        int a = 10;
        int b = 20;
        System.out.println("交换前：a="+a+",b="+b);

        int temp = a;
        a = b;
        b = temp;
        System.out.println("a="+a+",b="+b);
    }
}
